﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebApi.Domain.entity;

namespace WebApi.Domain
{
    public class WebApiDbContext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer("server=.;uid=sa;password=123456;database=WebApi");
        }
        
       
        public DbSet<User> User { get; set; }
        public DbSet<Role> Role { get; set; }


    }
}
